﻿using System.Windows;
using System.Windows.Controls;

namespace SpinDotters.Core.Samples
{
    public partial class ToggleSwitchDemoControl : UserControl
    {
        public ToggleSwitchDemoControl()
        {
            InitializeComponent();
        }

        private void SpeedToggleSwitch_CheckChanged(object sender, RoutedEventArgs e)
        {
            if ((bool)this.SpeedToggleSwitch.IsChecked)
                this.myTicker.Interval = 1; //sec
            else
                this.myTicker.Interval = 3;
        }
    }
}
